import layoutHeaderAside from '@/layout/header-aside'

// 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/libs/util.import.' + process.env.NODE_ENV)

const meta = { auth: true }

export default {
    path:'/course_adm',
    name: 'course_adm',

    meta,
    redirect: { name: 'adm_course' },
    component: layoutHeaderAside,
    children: [
        { 
            path: '/adm_course',
            name:'adm_course',
            component: _import('chooseCourse/teCourse'),
            meta: {
                ...meta,
                title: '课程信息'
            }
        },
        // { 
        //     path: '/adm_courseclass',
        //     name:'adm_courseclass',
        //     component: _import('chooseCourse/teCourseclass'),
        //     meta: {
        //         ...meta,
        //         title: '课程班信息'
        //     }
        // },
        { 
            path: '/adm_school',
            name:'adm_school',
            component: _import('chooseCourse/teSchool'),
            meta: {
                ...meta,
                title: '课程班时间信息'
            }
        },
        { 
            path: '/adm_teDepartment',
            name:'adm_teDepartment',
            component: _import('chooseCourse/teDepartment'),
            meta: {
                ...meta,
                title: '院系管理'
            }
        },
        { 
            path: '/adm_teacher',
            name:'adm_teacher',
            component: _import('chooseCourse/teTeacher'),
            meta: {
                ...meta,
                title: '教师管理'
            }
        },
    ]
}